//
//  LBPageViewController.h
//  LBUIDEMO
//
//  Created by 刘文扬 on 16/8/9.
//  Copyright © 2016年 lianj. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ScrollPageViewController.h"
#import "LBPageMenu.h"

typedef void (^LBDidChangePageBlock)(id viewOrViewController, NSInteger index);

typedef void (^LBDidClickShowButton)(void);

typedef void(^LBSliderConfig)(LBPageMenu *slider);

@interface LBPageViewController : ScrollPageViewController


-(instancetype)initWithViewOrViewControllers:(NSArray *)viewOrViewControllers titles:(NSArray *)titles;

-(instancetype)initWithViewOrViewControllers:(NSArray *)viewOrViewControllers titles:(NSArray *)titles sliderConfig:(LBSliderConfig)sliderConfig;

-(instancetype)initWithViewOrViewControllers:(NSArray *)viewOrViewControllers titles:(NSArray *)titles titleFontSize:(CGFloat)titleFontSize titleSelectFontSize:(CGFloat)titleSelectFontSize;

//当传入的是view的时候,需要传入viewControllerClass,如果不传,则默认使用UIViewController
-(instancetype)initWithViewOrViewControllers:(NSArray *)viewOrViewControllers titles:(NSArray *)titles viewControllerClass:(Class)viewControllerClass;

-(void)selectPageIndex:(NSInteger)page;



/** 注释*/
@property(nonatomic,copy)NSArray *titles;

/** 注释*/
@property(nonatomic,copy)NSArray *viewOrViewControllers;

/** 注释*/
@property(nonatomic,copy)LBDidChangePageBlock didChangePageBlock;

/** 配置slider,包括颜色大小等等 */
@property(nonatomic,copy)LBSliderConfig sliderConfig;

/** 快速是否统一的,默认统一*/
@property(nonatomic,assign)BOOL isUnifyWidth;

/** 是否可以滚动*/
@property(nonatomic,assign)BOOL scrollEnabled;

/** viewControllerClass*/
@property(nonatomic,assign)Class viewControllerClass;

/** showImage*/
@property(nonatomic,strong)UIImage *showImage;

/** 点击更多*/
@property(nonatomic,copy)LBDidClickShowButton didClickShowBlock;


@end
